macro (set_protobuf)

SET(PRJ_CMAKE_DIR ${ARGV0})

SET(THIRDPARTY_INCLUDE_ROOT ${ARGV1})
SET(THIRDPARTY_LIB_ROOT ${ARGV2})

include (${PRJ_CMAKE_DIR}/platform_ver.cmake)

SET(PROTOBUF_VER 3.6.1.3)
SET(PROTOBUF_H_PATH ${THIRDPARTY_INCLUDE_ROOT}/protobuf/${PROTOBUF_VER})

IF (MSVC)
SET(PROTOBUF_LIB_PATH ${THIRDPARTY_LIB_ROOT}/protobuf/${PROTOBUF_VER}/win64)
ELSE (MSVC)
SET(PROTOBUF_H_PATH /usr/lib64/protobuf/include)
SET(PROTOBUF_LIB_PATH /usr/lib64/protobuf/lib)
ENDIF (MSVC)

endmacro (set_protobuf)
